package org.example.event;

public class JavaEventTest implements Runnable {
    @Override
    public void run() {
        MyEventSource source = new MyEventSource("source1");
        source.addListener(new MyEventListener());
        source.addListener(new MyEventListener());
        source.notifyEvent(1);
        source.notifyEvent(2);
        source.notifyEvent("Hello, world!");
    }

}
